# Contributor: Rejah Rehim <rejah@beaglesecurity.com>
# Maintainer: Rejah Rehim <rejah@beaglesecurity.com>
pkgname=py3-radon
_pkgname=radon
pkgver=5.1.0
pkgrel=1
pkgdesc="Code Metrics in Python"
options="!check" # no test suite
url="https://radon.readthedocs.org/"
arch="noarch"
license="MIT"
depends="python3 py3-colorama py3-future py3-mando"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
source="https://files.pythonhosted.org/packages/source/r/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/radon/tests
	install -Dm644 README.rst -t "$pkgdir"/usr/share/doc/"$pkgname"
	install -Dm644 LICENSE  -t "$pkgdir"/usr/share/licenses/"$pkgname"
}

sha512sums="
98e1c3dbf419ff0a791f01ea5376177c5be47c9cf1afdd9ae53014e8869dd10c7a7661a69bace48adb880173a8a176d4a13534711fcf53408b3f495f4579f7c5  radon-5.1.0.tar.gz
"
